package cn.teud.quwanstore.controller;


import org.springframework.web.bind.annotation.RestController;

@RestController
public class CategoryController {
    /*@Autowired(required = false)
    CategoryMapper mapper;

    @RequestMapping("/category/select")
    public List<Category> select(){
        return mapper.select();
    }

    @RequestMapping("/category/delete")
    public void delete(int id){
        mapper.deleteById(id);
    }

    @RequestMapping("/category/insert")
    public List<Category> insert(String name){
        mapper.insert(name);
        return mapper.select();
    }

    @RequestMapping("/category/update")
    public void update(@RequestBody Category category){
        mapper.update(category);
    }*/
}
